<template>
  <div class="home">
    <div>this is home</div>
    <div>query:{{this.$route.query.userId}}</div>
    <div>params:{{this.$route.params.userId}}</div>
    <div>
      <button @click="back">返回</button>
    </div>
  </div>

</template>

<script>
// @ is an alias to /src


export default {
  methods: {
    back () {
      this.$router.go(-1)
    }
  }
}
</script>
